package com.bsoft.gol.hcs.specialist.service;

import com.bsoft.gol.hcs.specialist.entity.FusDiseaseProtocolEntity;
import ctd.controller.exception.ControllerException;
import ctd.util.annotation.RpcService;
import hcn.base.operate.qo.QueryOperativeListQo;
import hcn.rep.request.DiseaseSpeciesSimpleListReq;
import hcn.rep.response.DiseaseSpeciesSimpleListRep;
import pcn.vo.consultation.DeptAndDoctorVo;
import com.bsoft.gol.hcs.specialist.bean.request.*;
import com.bsoft.gol.hcs.specialist.bean.response.*;
import com.bsoft.gol.hcs.specialist.bean.vo.DiseaseVO;
import com.bsoft.gol.hcs.specialist.entity.DiseaseExtendPropertyEntity;
import com.bsoft.gol.hcs.specialist.entity.DiseasePeriodEntity;
import hcn.specialist.DiseaseSpecies;
import com.bsoft.gol.hcs.specialist.entity.DiseaseSpeciesRelate;

import java.util.List;

/**
 * @author tongtp
 * @version v0.1
 * @className IDiseaseSpeciesService
 * @description 病种管理
 * @create 2020-07-14 10:32
 **/
public interface IDiseaseSpeciesService {

    /**
     * 查询所有的病种信息（状态为可用）
     * @return
     */
    @RpcService
    List<DiseaseSpecies> queryAllChronicDiseaseList();
    /*获取慢病列表*/
    @RpcService
    List<DiseaseSpecies> queryChronicDiseaseList(QueryDiseaseSpeciesListReq docTeamListReq) throws ControllerException;

    /**
     * 根据机构id查询相应的病种列表
     */
    @RpcService
    List<DiseaseSpeciesSimpleListRep> querySimpleDiseaseList(DiseaseSpeciesSimpleListReq req);

    /**
     * 查询所有启用状态病种和对应的采集信息
     */
    @RpcService
    List<QueryDiseaseTypeResponse> queryAllDiseaseSpeciesList();

    /**
     * 分页获取病种列表
     *
     * @param docTeamListReq
     * @return
     * @throws ControllerException
     */
    @RpcService
    DiseaseTypeListResponse queryDiseaseSpeciesListByPage(QueryDiseaseSpeciesListReq docTeamListReq) throws ControllerException;
    /**
     * 根据关联类型和病种id获取相关信息
     * @param relateReq
     * @return
     * @throws ControllerException
     */
    @RpcService
    List<DiseaseSpeciesRelate> queryDiseaseSpeciesRelateListByType(QueryDiseaseRelateListReq relateReq) throws ControllerException;

    /**
     * 根据病种id查询病种扩展属性
     *
     * @param diseaseeId 入参
     * @return 扩展属性集合
     **/
    @RpcService
    List<DiseaseExtendPropertyResponse> queryExtendPropertyResponseListByDiseaseId(Long diseaseeId);

    /*获取患者详情中关联指标类型*/
    @RpcService
    List<PatientIndexTypeResp> queryPatientIndexType(QueryOperativeListRequest request) throws ControllerException;

    /*获取患者详情中关联指标数据列表*/
    @RpcService
    List<PatientIndexListResp> queryPatientIndexList(QueryOperativeListRequest request) throws ControllerException;

    @RpcService
    List<OperativeListResp> queryOperativeList(QueryOperativeListQo request) throws ControllerException;

    @RpcService
    DiseaseVO saveDiseaseSpecies(DiseaseTypeReq request) throws ControllerException;

    /**
     * 保存病种分期
     *
     * @param diseasePeriod 分期
     **/
    @RpcService
    void saveDiseasePeriod(DiseasePeriodEntity diseasePeriod);

    /**
     * 根据病种查询科室
     *
     **/
    @RpcService
    List<DiseaseSpecies> queryDiseaseDept(DiseaseSpecies request);

    /**
     * 根据机构和病种查询标准科室
     */
    @RpcService
    DeptAndDoctorVo.deptBean queryDiseaseStandardDept(Long diseaseTypeId) throws ControllerException;

    /**
     * 查询病种分期
     *
     * @param diseasePeriod 分期
     **/
    @RpcService
    List<DiseasePeriodResponse> queryDiseasePeriodList(DiseasePeriodEntity diseasePeriod);
    @RpcService
    void deleteDiseaseSpecies(QueryDiseaseTypeListReq request) throws ControllerException;

    void deleteDiseasePeriod(DiseasePeriodEntity diseasePeriod) throws ControllerException;

    void deleteExtendProperty(DiseaseExtendPropertyEntity diseaseExtendProperty) throws ControllerException;

    @RpcService
    FusDiseaseProtocolEntity getDiseaseProtocol(FusDiseaseProtocolEntity request) throws ControllerException;
    @RpcService
    FusDiseaseProtocolEntity resetDiseaseProtocol(FusDiseaseProtocolEntity request) throws ControllerException;
    @RpcService
    FusDiseaseProtocolEntity saveDiseaseProtocol(FusDiseaseProtocolEntity request) throws ControllerException;

}
